package ognl.util;

import java.util.Collection;

public class OgnlUtils {

    public static boolean isEmple(Object o) {

        System.out.println("我进入OrgnlUtils里面了");
        if (o==null) {
            return true;
        }
        if (o instanceof Collection) {
            if (((Collection) o ).isEmpty()) {
                return true;
            }
        } else if (o instanceof String) {
            if (((String)o).trim().length()==0) {
                return true;
            }
        }

        return false;
    }
}
